package com.example.administrator.chesstest01;

/**
 * Created by Administrator on 2016/6/25.
 */
public class Common {
    //请求命令
    public static final class JsonCmdReq {
        public static final int CREATE_ROOM = 0;
        public static final int APPLY_FOR_ROOM_LIST = CREATE_ROOM+1;
        public static final int APPLY_FOR_JOIN_ROOM= APPLY_FOR_ROOM_LIST+1;
        public static final int APPLY_FOR_EXIT_ROOM= APPLY_FOR_JOIN_ROOM+1;
        public static final int READY= APPLY_FOR_EXIT_ROOM+1;
        public static final int SEND_CHESS= READY+1;
        public static final int RECEIVE_CHESS= SEND_CHESS+1;
        public static final int LENGTH= RECEIVE_CHESS+1;

    }
    //回复命令
    public static final class JsonCmdResp {
        public static final int CREATE_ROOM = 100;
        public static final int APPLY_FOR_ROOM_LIST = CREATE_ROOM+1;
        public static final int APPLY_FOR_JOIN_ROOM= APPLY_FOR_ROOM_LIST+1;
        public static final int NEW_PLAYER_JOIN_ROOM= APPLY_FOR_JOIN_ROOM+1;
        public static final int OPPO_PLAYER_EXIT_ROOM= NEW_PLAYER_JOIN_ROOM+1;
        public static final int READY= OPPO_PLAYER_EXIT_ROOM+1;
        public static final int LENGTH= READY+1;
    }
}

